package com.credithc.customers.base.ro;

import com.credithc.customers.base.utils.CustomerUtils;
import lombok.Data;

/**
 * @description: 客户基础信息表
 * @author: denghx
 * @date: 2018/11/28 10:33
 * @param: null
 * @return:
 */
@Data
public class ContactRo {

    String contactType;

    String contactInfo;

    Boolean contactVerified;

    public static void checkBaseParam(ContactRo ro) {
        CustomerUtils.checkContactType(ro.getContactType());
        CustomerUtils.checkContactInfo(ro.getContactInfo());
        CustomerUtils.checkContact(ro.getContactType(),ro.getContactInfo());
    }

}
